package com.zzy.filter;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

import java.util.Arrays;
import java.util.List;

public class FlowTaskListener implements JavaDelegate {
	

    public void execute(DelegateExecution execution) throws Exception {
        String[] experts = (String[]) execution.getVariable("experts");
       // Assert.isTrue(experts != null,"请选择评审专家");
        //Assert.isTrue(experts.length > 0 ,"请选择评审专家");
        List<String> list = Arrays.asList(experts);
        execution.setVariable("pers", list);
    }  
}  
